package com.androidvizlab.bachelor.customcomponents.viewholder;

import android.view.View;

/**
 * Base class for ListViewHolder used to
 * recycle view in a ListView. The inflated
 * view is passed as a parameter in the constructor 
 * and use to instantiate its child views.
 * 
 * @author The Hive
 */
public abstract class ListViewHolder {
	
	protected View view = null;
	
	public ListViewHolder(View view)
	{
		this.view = view;
	}
	
	/**
	 * abstract method to override
	 */
	public abstract void setTVText(String... params);

	//GETTER AND SETTER
	public View getView() {
		return view;
	}
	
	public void setView(View view) {
		this.view = view;
	}
}
